<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MinPHP - MVC超轻量级微官网开发框架</title>
<link rel="stylesheet" href="/mindemo/public/bootstrap/2.3.2/css/bootstrap.min.css"/>
<link rel="stylesheet" href="/mindemo/public/css/docs.css">
<script src="/mindemo/public/jquery/jquery-1.7.2.min.js"></script>
<script src="/mindemo/public/bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script src="/mindemo/public/jquery/jquery.twbsPagination.js"></script>
<script>
$(document).ready(function () {

    $('#visible-pages-example').twbsPagination({
        totalPages:<?echo $page['totalPage']?>,
		startPage:<?echo $page['currentPage']?>,
        visiblePages: 10,
		href:'blog/detail.php?page={{number}}',
        version: '1.1',
    });

});
</script>
</head>
<body>
<header class="container hope">
    <div class="col-md-5" align="right">
      <img src="/mindemo/public/img/landing.png">
    </div>
    <div class="col-md-7">
		<br />
      <h2>同我们一起打造你的互联网前沿阵地</h2>

      <p>
      </p>
    </div>
</header>
<div class="container">
	<div id="content" class="row">        
        <!-- 左侧 nav
        ================================================== -->
        <div class="span3">
			<ul class="list-group">
				<li class="list-group-item active">
					<a href="/one/index.php?s=/Home/Article/lists/category/default_blog.html">
					<i class="icon-chevron-right"></i>默认分类</a>
				</li>
				<li class="list-group-item">
					<a href="#">
					<i class="icon-chevron-right"></i>默认分类</a>
				</li>
				<li class="list-group-item">
					<a href="#">
					<i class="icon-chevron-right"></i>默认分类</a>
				</li>
				<li class="list-group-item">
					<a href="#">
					<i class="icon-chevron-right"></i>默认分类</a>
				</li>
			</ul>
		</div>
        
        
        <!-- Contents
        ================================================== -->
		<div class="span9">
			<section id="contents">
			<? foreach($blogs as $b) {?>
				<div class="">
					<h3 class="ellipsis"><a href="detail.php?id=<?echo $b['id']?>"><?echo $b['title']?></a></h3>
				</div>
				<div>
					<span><a href="detail.php?id=<?echo $b['id']?>">查看全文</a></span>
					<span class="pull-right">
						<span class="author">admin</span>&nbsp;&nbsp;
						<span>发表于 <?echo $b['create_time']?></span>
						<span>阅读(<?echo $b['clicknum']?>)</span>&nbsp;&nbsp;
                    </span>
				</div>
				<hr/>
			<?}?>
			</section>
			<section id="main-content">
				<div class="text-center">
					<ul id="visible-pages-example"></ul>
				</div>
			</section>
		</div>
	</div>
</div>


</body>
</html>